<?php
require_once('configure.php'); 
$pdata = strtolower($_GET['field']);
$query = "SELECT {$pdata} FROM nipar WHERE golongan_jabatan_id = {$_GET['gid']}";
$result = my_query($query);
$row = my_fetch_array($result);
echo $row[$pdata];